import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import mavonEditor from 'mavon-editor'
import createhttp from "./apis/api"
//引入js
import './utils/live2d'
import './utils/title'
import http from './utils/request'
import common from './utils/common'
import constant from './utils/constant'
//引入css
import './assets/css/animation.css'
import './assets/css/index.css'
import './assets/css/tocbot.css'
import './assets/css/color.css'
import './assets/css/markdown-highlight.css'
import './assets/css/font-awesome.min.css'
import 'mavon-editor/dist/css/index.css'


import {vueBaberrage} from 'vue-baberrage'

//引入全局组件
import myFooter from "./components/common/footer.vue"
import comment from "./components/comment/comment"
import proTag from "./components/common/proTag"
import proButton from "./components/common/proButton"

Vue.component('myFooter', myFooter)
Vue.component('comment', comment)
Vue.component('proTag', proTag)
Vue.component('proButton', proButton)

Vue.use(ElementUI)
Vue.use(vueBaberrage)
Vue.use(mavonEditor)

Vue.prototype.$http = http
Vue.prototype.$common = common
Vue.prototype.$constant = constant
Vue.prototype.$createHttp = createhttp
Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
